<template>
	<button @click="verifyC">开始认证</button>
</template>
<script>
	// #ifdef APP-PLUS
	const n = uni.requireNativePlugin('AP-FaceDetectModule');
	// #endif

export default {
		data(){
			return {
				certify:""
			}
		},
		mounted() {
			// #ifdef APP-PLUS
			this.getMetaInfo()
			// #endif
			
		},
    methods: {
        verifyC: function() {
            n.verify(
                {
                    certifyId: this.certify
                },
                function(t) {
                    uni.showToast({
                        title: '返回的内容' + t,
                        icon: 'none',
												duration:10000
                    });
                }
            );
        },
        //获取环境参数接口。
        getMetaInfo: function() {
            var t = n.getMetaInfo();
						uni.showToast({
						    title: '返回的内容' + t,
						    icon: 'none',
								duration:10000
						});
							
        },
    }
};
</script>